package com.emily.test.service;

import org.apache.http.HttpRequest;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface RedisService {

    // ============================String=============================
    /**
     * 普通缓存获取
     * @param key 键
     * @return 值
     */
    public Object get(String key);
    /**
     * 普通缓存放入
     * @param key 键
     * @param value 值
     * @return true成功 false失败
     */
    public boolean set(String key, Object value);

    /**
     * 获取登录人的信息
     * @param request
     * @return
     */
    public  Map<String, Object> getUserInfoFromRedis(HttpServletRequest request);
}
